import 'package:flutter/material.dart';
import 'package:jm_flutter/jm_flutter.dart';

Widget div(
    {double? height,
    double? thickness,
    Color? color,
    double? indent,
    double? endIndent}) {
  return Divider(
    height: height ?? 0,
    thickness: thickness ?? 0.5,
    color: color ?? JmColors.div,
    indent: indent,
    endIndent: endIndent,
  );
}

/// 水平间隔
Widget gaph(double val) {
  return SizedBox(width: val);
}

/// 水平间隔2
Widget gapw(double val) {
  return SizedBox(width: val);
}

/// 垂直间隔
Widget gapv(double val) {
  return SizedBox(height: val);
}

const Widget gaph2 = SizedBox(width: 2.0);
const Widget gaph4 = SizedBox(width: 4.0);
const Widget gaph8 = SizedBox(width: 8.0);
const Widget gaph10 = SizedBox(width: 10.0);
const Widget gaph12 = SizedBox(width: 12.0);
const Widget gaph16 = SizedBox(width: 16.0);
const Widget gaph20 = SizedBox(width: 20.0);
const Widget gaph24 = SizedBox(width: 24.0);
const Widget gaph28 = SizedBox(width: 28.0);
const Widget gaph32 = SizedBox(width: 32.0);
const Widget gaph36 = SizedBox(width: 36.0);
const Widget gaph40 = SizedBox(width: 40.0);
const Widget gaph44 = SizedBox(width: 44.0);
const Widget gaph48 = SizedBox(width: 48.0);
const Widget gaph52 = SizedBox(width: 52.0);
const Widget gaph60 = SizedBox(width: 60.0);
const Widget gaph80 = SizedBox(width: 80.0);
const Widget gaph100 = SizedBox(width: 100.0);

const Widget gapv2 = SizedBox(height: 2.0);
const Widget gapv4 = SizedBox(height: 4.0);
const Widget gapv8 = SizedBox(height: 8.0);
const Widget gapv10 = SizedBox(height: 10.0);
const Widget gapv12 = SizedBox(height: 12.0);
const Widget gapv16 = SizedBox(height: 16.0);
const Widget gapv20 = SizedBox(height: 20.0);
const Widget gapv24 = SizedBox(height: 24.0);
const Widget gapv28 = SizedBox(height: 28.0);
const Widget gapv32 = SizedBox(height: 32.0);
const Widget gapv36 = SizedBox(height: 36.0);
const Widget gapv40 = SizedBox(height: 40.0);
const Widget gapv44 = SizedBox(height: 44.0);
const Widget gapv48 = SizedBox(height: 48.0);
const Widget gapv52 = SizedBox(height: 52.0);
const Widget gapv60 = SizedBox(height: 60.0);
const Widget gapv80 = SizedBox(height: 80.0);
const Widget gapv100 = SizedBox(height: 100.0);
